Skip to main content

Clear-IMJob

SYNOPSIS​

Clears Immich job queues

SYNTAX​

Clear-IMJob [[-Session] <ImmichSession>] [-Job] <String[]> [-FailedOnly] [-Force]
[-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION​

Clears completed, failed, or all jobs from specific job queues in Immich. This helps manage job queue cleanup and removes old job entries that are no longer needed.

EXAMPLES​

EXAMPLE 1​

Clear-IMJob -Job 'thumbnailGeneration'

Clears all jobs from the thumbnail generation queue.

EXAMPLE 2​

Clear-IMJob -Job 'faceDetection' -FailedOnly

Clears only failed jobs from the face detection queue.

PARAMETERS​

-Session​

Optionally define an Immich session object to use. This is useful when you are connected to more than one Immich instance.

Type: ImmichSession
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Job​

The type of job queue to clear. Valid values include thumbnailGeneration, metadataExtraction, videoConversion, faceDetection, and other job types.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-FailedOnly​

Clears only failed jobs from the queue, leaving completed and pending jobs intact. This uses the deprecated jobs API because the queues API cannot clear failed jobs without also clearing the queue.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Force​

Retained for compatibility. The queues API has no force option, so this parameter has no effect and a warning is written.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction​

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters​

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS​

OUTPUTS​

NOTES​

Use caution when clearing job queues as this may remove jobs that haven't completed yet. The FailedOnly parameter is recommended for routine maintenance.

EDIT THIS DOC​

This page was auto-generated from PowerShell comment-based help. To edit this page, update the corresponding command help in the module source repository.